package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.ProcessRoute;
import com.nbsaas.boot.manufacturing.api.domain.simple.ProcessRouteSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 工艺路线-列表对象转换器
*/

public class ProcessRouteSimpleConvert implements Converter<ProcessRouteSimple, ProcessRoute> {




@Override
public ProcessRouteSimple convert(ProcessRoute source) {
    ProcessRouteSimple result = new ProcessRouteSimple();

                result.setNote(source.getNote());
                result.setProductSkuId(source.getProductSkuId());
                result.setProcessRequirements(source.getProcessRequirements());
                result.setSafetyRequirements(source.getSafetyRequirements());
                result.setAuditOpinion(source.getAuditOpinion());
                result.setProductId(source.getProductId());
                result.setStandardTime(source.getStandardTime());
                result.setAuditor(source.getAuditor());
                result.setDescription(source.getDescription());
                result.setVersion(source.getVersion());
                result.setAddDate(source.getAddDate());
                result.setStandardCost(source.getStandardCost());
                result.setExpiryDate(source.getExpiryDate());
                result.setIsDefault(source.getIsDefault());
                result.setAuditTime(source.getAuditTime());
                result.setName(source.getName());
                result.setAuditStatus(source.getAuditStatus());
                result.setId(source.getId());
                result.setRouteNo(source.getRouteNo());
                result.setQualityRequirements(source.getQualityRequirements());
                result.setEffectiveDate(source.getEffectiveDate());
                result.setStatus(source.getStatus());
                result.setLastDate(source.getLastDate());


    return result;
}

}